//
//  HOAppraiseEntity.m
//  WeiDu_1_0
//
//  Created by foguo-mac-1 on 1/26/16.
//  Copyright © 2016 ShenOu. All rights reserved.
//

#import "HOAppraiseEntity.h"
#import "HOConstants.h"

@implementation HOAppraiseEntity

- (void)parseDic:(NSDictionary *)dic
{
	self.userName = [dic objectForKey:kHO_FIELD_UserName];
	self.workId = [dic objectForKey:kHO_FIELD_WorkeId];
	self.appraiseId = [[dic objectForKey:kHO_FIELD_AppraiseId] intValue];
	self.headPic = [dic objectForKey:kHO_FIELD_Headpic];
	
	self.time = [[dic objectForKey:kHO_FIELD_Time] doubleValue];
	self.content = [dic objectForKey:kHO_FIELD_Content];
	self.value = [[dic objectForKey:kHO_FIELD_AppraiseValue] intValue];
	self.department = [dic objectForKey:kHO_FIELD_DepartmentName];
	//"UserName": "李白",
	//"WorkId":"102532",
	//"AppraiseId":333,
	//"Headpic":"地址",
	//"Time":12213173821732,
	//"Content":"这是内容",
	
}

- (void)dealloc
{
	self.userName = nil;
	self.workId = nil;
	self.headPic = nil;
	self.content = nil;
	[super dealloc];
}
@end
